package org.jing.ext.socket.example;

import org.jing.core.lang.annotation.SerializableField;
import org.jing.core.lang.annotation.SerializableType;
import org.jing.ext.socket.BaseSocketServerConfig;

/**
 * Description: <br>
 *
 * @author bks <br>
 * @since 2024-07-08 <br>
 */
@SerializableType
public class TestSocketConfig extends BaseSocketServerConfig {
    @SerializableField(value = "code")
    private String code;

    @SerializableField(value = "name")
    private String name;

    @SerializableField(value = "port", required = true)
    private int port;

    @SerializableField(value = "encoding")
    private String encoding;

    @SerializableField(value = "timeout")
    private long timeout;

    @SerializableField(value = "limit")
    private int limit;

    @Override public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @Override public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override public int getPort() {
        return port;
    }

    @Override public void setPort(int port) {
        this.port = port;
    }

    @Override public String getEncoding() {
        return encoding;
    }

    @Override public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    @Override public long getTimeout() {
        return timeout;
    }

    @Override public void setTimeout(long timeout) {
        this.timeout = timeout;
    }

    @Override public int getLimit() {
        return limit;
    }

    @Override public void setLimit(int limit) {
        this.limit = limit;
    }
}
